package test;

import java.io.Serializable;

public class Person implements Serializable{
	public String name;
	public String pwd;
	public String QQ;
	public int recievePort;
	public int sendPort;
	public String getName() {
		return name;
	}
	public int getrecievePort() {
		return recievePort;
	}
	public void setPort(int recievePort) {
		this.recievePort = recievePort;
	}
	public int getSendPort() {
		return sendPort;
	}
	public void setSendPort(int sendPort) {
		this.sendPort = sendPort;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public String getQQ() {
		return QQ;
	}
	public void setQQ(String qQ) {
		QQ = qQ;
	}

	public Person(String name, String pwd, String qQ) {
		this.name = name;
		this.pwd = pwd;
		QQ = qQ;
	}
	
	public Person(String name, String pwd) {
		this.name=name;
		this.pwd=pwd;
	}
	public boolean equals(Object arg0){
		Person p=(Person)arg0;
		if(this.name.equals(p.name)&&(this.pwd.equals(p.pwd))){
			return true;
		}else
		return false;
	}
	public Person() {
		// TODO Auto-generated constructor stub
	}

}
